﻿using KoolearnSample.Model;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KoolearnSample.ViewModel
{
    /// <summary>
    /// 课程信息列表实体
    /// </summary>
    [DataContract]
    public class CoursesViewModel
    {
        #region Contruction
        public CoursesViewModel()
        {
            if (Courses == null)
            {
                Courses = new ObservableCollection<KoolearnCourse>();
            }
        }
        #endregion

        #region Members
        [DataMember(Name = "courses")]
        private ObservableCollection<KoolearnCourse> courses;
        #endregion

        #region Properties
        public ObservableCollection<KoolearnCourse> Courses
        {
            get { return courses; }
            set { courses = value; }
        }
        #endregion
    }
}
